import { request } from "../request"
// 获取轮播图列表
export const shoppingList = (data) => {
  return request({
    url: 'shopping/shoppingList',
    method: 'POST',
    data
  })
}
// 添加商品列表
export const shoppingListAdd = (data) => {
  return request({
    url: 'shopping/shoppingListAdd',
    method: 'POST',
    data
  })
}
// 删除商品
export const shoppingListDelete = (data) => {
  return request({
    url: 'shopping/shoppingListDelete',
    method: 'POST',
    data
  })
}
// 获取所有商品
export const shoppingAllList = (data) => {
  return request({
    url: 'shopping/shoppingAllList',
    method: 'POST',
    data
  })
}
// 修改数据
export const shoppingListChange = (data) => {
  return request({
    url: 'shopping/shoppingListChange',
    method: 'POST',
    data
  })
}

// 排序
export const shoppingListSrot = (data) => {
  return request({
    url: 'shopping/shoppingListSrot',
    method: 'POST',
    data
  })
}
// 获取代发货商品列表
export const commodityList = (data) => {
  return request({
    url: 'shopping/commodityList',
    method: 'POST',
    data
  })
}
// 删除发货商品
export const commodityListDelete = (data) => {
  return request({
    url: 'shopping/commodityListDelete',
    method: 'POST',
    data
  })
}
// 点击发货
export const logisticsNumberAdd = (data) => {
  return request({
    url: 'shopping/logisticsNumberAdd',
    method: 'POST',
    data
  })
}
// 发货搜搜
export const commoditySerach = (data) => {
  return request({
    url: 'shopping/commoditySerach',
    method: 'POST',
    data
  })
}
// 导出表格
export const commodityCreateExcel = (data) => {
  return request({
    url: 'shopping/commodityCreateExcel',
    method: 'POST',
    data,
    responseType: "blob",
  })
}



